import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import i18n from './i18n'
import '@/assets/iconfont/iconfont.css'
import '@/assets/css/base.css'
import Vant from 'vant';
import 'vant/lib/index.css';
import VueTouch from 'vue-touch'
Vue.use(VueTouch, {
  name: 'v-touch'
})
import '@/permission' // permission control
import Highcharts from 'highcharts/highstock';
import HighchartsMore from 'highcharts/highcharts-more';
HighchartsMore(Highcharts)
import Vconsole from 'vconsole'
import {
  Slider,
  Upload,
  Progress,
  Rate,
  Dialog,
  card,
  button,
  divider
} from 'element-ui';
Vue.use(Slider)
Vue.use(Upload)
Vue.use(Progress)
Vue.use(Rate)
Vue.use(Dialog)
Vue.use(card)
Vue.use(button)
Vue.use(divider)


// import {
//   Button,
//   Upload, 
//   Icon
// } from 'ant-design-vue';
// import 'ant-design-vue/dist/antd.css';
// Vue.use(Upload)
// Vue.component(Button.name, Button)
// Vue.component(Icon.name, Icon)

// 开发环境下面使用vConsole进行调试
if (process.env.NODE_ENV === 'development') {
  let vConsole = new Vconsole()
  Vue.use(vConsole)
}
import mui from './assets/js/mui.min'
Vue.prototype.$mui = mui

import {
  ShareSheet
} from "vant";
Vue.use(ShareSheet);
Vue.use(Vant);
// 复制工具
import VueClipboard from 'vue-clipboard2'
VueClipboard.config.autoSetContainer = true
Vue.use(VueClipboard)


Vue.config.productionTip = false

new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount('#app')